@import "../theme/index.less";

.project_container {
  width: 100%;
  min-height: 100%;
  background-repeat: no-repeat;

  .project_nav {
    .project_nav_bg {
      position: fixed;
      top: 0;
      flex-direction: column;
      width: 100%;
      height: 290px;
    }

    .project_nav_content {
      z-index: 99;
      .flex_between();
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 50px;
      padding: 0 10px;
      box-sizing: border-box;

      .project_nav_logo {
        font-size: 28px;
        font-weight: bolder;
        color: @color-9;
        position: relative;
        user-select: none;
      }

      .project_nav-right {
        .project_nav-right_user {
          color: @border-color-5;
          .flex_common();
          padding-top: 6px;

          & > span:first-child {
            padding: 0 6px;

            & > img {
              width: 32px;
              border-radius: 50%;
            }
          }

          .icon-xiala1 {
            display: inline-block;
            padding: 0 4px;
            font-size: 12px;
          }
        }
      }
    }
  }

  .project_nav-main {
    z-index: 10;
    display: flex;
    top: 50px;
    position: sticky;
    width: 100%;
    margin-top: 246px;
    min-width: 1024px;
    user-select: none;

    .nav-span {
      .nav-link {
        transition: color 0.2s;
        text-decoration: none !important;
        display: block;
        color: @color-6;
        width: auto;
        min-width: 140px;
        line-height: 40px;
        font-size: 14px;
        text-align: center;
        cursor: pointer;
        padding: 0 40px;

        &.nav-active,
        &:hover {
          color: @border-color-5 !important;
        }
      }

      .nav-icon {
        padding-right: 5px;
        font-size: 16px;
      }
    }
  }

  .project-main {
    user-select: none;

    .project-content {
      position: relative;
    }
  }
}

.my-list-header {
  .flex_between();
  border-bottom: 1px solid #3a4659;
  padding-bottom: 5px;
  padding-top: 10px;
  padding-left: 6px;
  margin: 12px 0;

  .my-list-header_title {
    .text_nowrap();
    max-width: 200px;
    font-size: 14px;
    color: @color-1;
    padding: 0 10px;
    border-left: 2px solid @border-color-1;
    font-weight: bolder;
  }
}

.my-list {
  height: 290px;

  .my-list_content {
    position: relative;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    padding: 2px;

    .my-list-body {
      flex: 0 0 254px;

      .my-list-body-img {
        & > img {
          position: relative;
          height: 254px;
          width: 100%;
        }

        .my-list-body-edit {
          height: 254px;
          position: absolute;
          top: 2px;
          bottom: 0;
          left: 0;
          right: 2px;
          background: rgba(0, 0, 0, .8);
          opacity: 0;
          z-index: 2;
          .flex_common();
          transition: opacity .2s;

          .edit-wrap {
            /*包含以下五种的链接*/
            text-decoration: none;
            /*正常的未被访问过的链接*/

            &:link {
              text-decoration: none;
            }

            /*已经访问过的链接*/

            &:visited {
              text-decoration: none;
            }

            /*鼠标划过(停留)的链接*/

            &:hover {
              text-decoration: none;
            }

            /* 正在点击的链接，鼠标在元素上按下还没有松开*/

            &:active {
              text-decoration: none;
            }

            /* 获得焦点的时候 鼠标松开时显示的颜色*/

            &:focus {
              text-decoration: none;
            }
          }

          .btn_edit {
            min-width: 160px;
            color: @color-9;
            background-color: @color-1;

            &:hover {
              border-color: @border-color-1;
            }
          }

          .btn_edit_icon {
            .flex_between();
            padding: 12px 8px;
            color: #fff;
            font-weight: 400;

            & > i {
              cursor: pointer;
              font-size: 16px;
              display: inline-block;
              width: 40px;
              height: 20px;
              text-align: center;
            }
          }

          .my-list-body-edit-icon {
            position: absolute;
            right: 10px;
            top: 10px;

            & > i {
              cursor: pointer;
              padding: 0 6px;
              font-weight: 400;
              color: @color-9;

              &:hover {
                color: @color-1;
              }
            }
          }
        }
      }
    }

    &:hover {
      .my-list-body-edit {
        opacity: 1 !important;
      }
    }

    .my-list-footer {
      font-size: 14px;
      .flex_between();
      padding: 0 10px;
      color: @color-9;

      .edit-btn {
        cursor: pointer;
      }

      .dotted {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin: 0 6px;
      }

      .publish {
        background-color: @background-color-5;
      }

      .no-publish {
        background-color: @background-color-6;
      }
    }
  }
}
